from django.conf.urls.defaults import *
from djangocollection.djcollection.views import GenericCollection
from djangocollection.task.views import SubtaskCollection

urlpatterns = patterns('',
    (r'^subtask/(?:(?P<id>\d+)/?)?(?:;(?P<noun>\w+))?/?$',SubtaskCollection()),
    (r'^(?P<model>\w+)/(?:(?P<id>\d+)/?)?(?:;(?P<noun>\w+))?/?$',
        GenericCollection(), {'app':'task'}),
)
